package com.chixing.day03.day03_Test;

public class AccountTest {
    public static void main(String[] args) {
        //储蓄账户
        Account acc1 = new Account();
        acc1.setAccNo(1254);
        acc1.setAccName("小明");
        acc1.setAccPassword("123456");
        acc1.setAccTelno(15155151151L);
        acc1.setAccBalance(1000);
        acc1.setAccType(0);

        //信用账户
        Account acc2 = new Account();
        acc2.setAccNo(1255);
        acc2.setAccName("小红");
        acc2.setAccPassword("042512");
        acc2.setAccTelno(15155151519L);
        acc2.setAccBalance(3000);
        acc2.setAccType(1);


        System.out.println("账户账号: " + acc1.getAccNo());
        System.out.println("账户姓名: " + acc1.getAccName());
        System.out.println("账户密码: " + acc1.getAccPassword());
        System.out.println("账户手机号: " + acc1.getAccTelno());
        System.out.println("账户余额: " + acc1.getAccBalance());
        System.out.println("账户类型: " + acc1.getAccType());
        System.out.println("====================================");
        System.out.println("账户账号: " + acc2.getAccNo());
        System.out.println("账户姓名: " + acc2.getAccName());
        System.out.println("账户密码: " + acc2.getAccPassword());
        System.out.println("账户手机号: " + acc2.getAccTelno());
        System.out.println("账户余额: " + acc2.getAccBalance());
        System.out.println("账户类型: " + acc2.getAccType());

        System.out.println("====================================");
        // 将第一个账户的手机号修改为1833893849
        acc1.setAccTelno(1833893849);
        System.out.println("账户手机号: " + acc1.getAccTelno());

        System.out.println("====================================");
        acc2.depoist(1000);
        acc2.withdraw(500);
    }
}
